namespace glf {

// DWORD is defined as unsigned long

typedef unsigned long ThreadId;

ThreadId GetCurrentThreadId();

typedef unsigned long TlsKey;

bool allocTlsKey(TlsKey& key);
bool freeTlsKey(TlsKey key);
void* getTlsValue(TlsKey key);
bool setTlsValue(TlsKey key, void* value);

}
